package com.sgb.kjwl.model.entity;

import com.sgb.kjwl.model.entity.user.ServerAttrValue;

import java.util.List;

/**
 * @author zhaotao
 */
public class ConcreteDetailEntity {

    /**
     * area : 西安市雁塔区
     * no : 20191106024949316
     * images : ["https://shigongbang.oss-cn-hangzhou.aliyuncs.com/material/650000/20190926709484837148145"]
     * gradationList : [{"price":"0","gradation":"二级配","id":"0"},{"price":"200","gradation":"一级配","id":"1"}]
     * strengthList : [{"strongLevel":"C10","price":"10","sort":"1","id":"836"},{"strongLevel":"C15","price":"15","sort":"2","id":"837"},{"strongLevel":"C20","price":"20","sort":"3","id":"838"},{"strongLevel":"C25","price":"25","sort":"4","id":"839"},{"strongLevel":"C40","price":"40","sort":"8","id":"840"},{"strongLevel":"C45","price":"45","sort":"9","id":"841"},{"strongLevel":"C50","price":"50","sort":"10","id":"842"}]
     * updateTime : 2019年11月06日
     * tax : 8%
     * title : ABC
     * admixtureList : [{"admixtureName":"膨胀剂","spec":[{"price":"1","id":"951","spec":"P6"},{"price":"2","id":"952","spec":"P8"},{"price":"3","id":"953","spec":"P12"}]},{"admixtureName":"抗冻剂","spec":[{"price":"4","id":"954","spec":"F250"},{"price":"5","id":"955","spec":"F350"}]},{"admixtureName":"早强剂","spec":[{"price":"6","id":"956","spec":""}]},{"admixtureName":"防冻剂","spec":[{"price":"7","id":"957","spec":""}]},{"admixtureName":"高性能","spec":[{"price":"8","id":"958","spec":""}]},{"admixtureName":"防腐剂","spec":[{"price":"9","id":"959","spec":""}]},{"admixtureName":"阻锈剂","spec":[{"price":"10","id":"960","spec":""}]},{"admixtureName":"高抗硫","spec":[{"price":"11","id":"961","spec":""}]},{"admixtureName":"微膨胀","spec":[{"price":"12","id":"962","spec":""}]},{"admixtureName":"细石混凝土","spec":[{"price":"13","id":"963","spec":""}]},{"admixtureName":"缓凝剂","spec":[{"price":"14","id":"964","spec":""}]}]
     * selfSupportTag;//0非自营 1自营
     * unit : 立方米
     * serviceList : [{"service":"自卸","price":"0","id":"0"},{"service":"泵送","price":"100","id":"1"}]
     * id : 157300858931746
     * providerInfo : {"address":"新疆维吾尔自治区乌鲁木齐市天山区","providerId":"821","mainBusiness":"FailInRecognition","contactNumber":"","authTime":"2019年09月17日","providerName":"企业名称必须要高大上"}
     */


    public List<GoodsSkuDetailEntity.VideoBean> videoList;
    private String area;
    private String no;
    private String updateTime;
    public String updateTimeStr;
    private String tax;
    private String title;
    private String unit;
    private String id;
    private ProviderInfoBean providerInfo;
    private List<String> images;
    private List<ConcreteFilterEntity> strengthList;//强度等级
    private List<AdmixtureEntity> admixtureList;//外加剂
    private String desc;
    private String shopId;
    private String latitude;
    private String longitude;
    private List<ConcreteFilterEntity> gradationList;//配置
    private List<ConcreteFilterEntity> serviceList;//服务
    private String detail;
    private String selfSupportTag;
    private String itemTitleUrl;//其他信息
    private List<ServerAttrValue> itemServerAttrVals;
    public String isOpenAccount;//1开通企业钱包 0未开通企业钱包

    public List<ConcreteFilterEntity> getStrengthList() {
        return strengthList;
    }

    boolean isfirst = true;

    public void setStrengthList(List<ConcreteFilterEntity> strengthList) {
        this.strengthList = strengthList;
    }

    public List<AdmixtureEntity> getAdmixtureList() {
        if (admixtureList == null) {
            return null;
        }
        for (AdmixtureEntity entity : admixtureList) {
            if (!"0".equals(entity.getSpec().get(0).getId())) {
                ConcreteFilterEntity concreteFilterEntity = new ConcreteFilterEntity();
                concreteFilterEntity.setId("0");
                concreteFilterEntity.setName("不选择");
                entity.getSpec().add(0, concreteFilterEntity);
                isfirst = false;
            }
        }
        return admixtureList;
    }

    public void setAdmixtureList(List<AdmixtureEntity> admixtureList) {
        this.admixtureList = admixtureList;
    }

    public List<ConcreteFilterEntity> getGradationList() {
        return gradationList;
    }

    public void setGradationList(List<ConcreteFilterEntity> gradationList) {
        this.gradationList = gradationList;
    }

    public List<ConcreteFilterEntity> getServiceList() {
        return serviceList;
    }

    public void setServiceList(List<ConcreteFilterEntity> serviceList) {
        this.serviceList = serviceList;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ProviderInfoBean getProviderInfo() {
        return providerInfo;
    }

    public void setProviderInfo(ProviderInfoBean providerInfo) {
        this.providerInfo = providerInfo;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getSelfSupportTag() {
        return selfSupportTag;
    }

    public void setSelfSupportTag(String selfSupportTag) {
        this.selfSupportTag = selfSupportTag;
    }

    public String getItemTitleUrl() {
        return itemTitleUrl;
    }

    public void setItemTitleUrl(String itemTitleUrl) {
        this.itemTitleUrl = itemTitleUrl;
    }

    public List<ServerAttrValue> getItemServerAttrVals() {
        return itemServerAttrVals;
    }

    public void setItemServerAttrVals(List<ServerAttrValue> itemServerAttrVals) {
        this.itemServerAttrVals = itemServerAttrVals;
    }

    public static class ProviderInfoBean {
        /**
         * address : 新疆维吾尔自治区乌鲁木齐市天山区
         * providerId : 821
         * mainBusiness : FailInRecognition
         * contactNumber :
         * authTime : 2019年09月17日
         * providerName : 企业名称必须要高大上
         */

        private String address;
        private String providerId;
        private String mainBusiness;
        private String contactNumber;
        private String authTime;
        private String providerName;

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getProviderId() {
            return providerId;
        }

        public void setProviderId(String providerId) {
            this.providerId = providerId;
        }

        public String getMainBusiness() {
            return mainBusiness;
        }

        public void setMainBusiness(String mainBusiness) {
            this.mainBusiness = mainBusiness;
        }

        public String getContactNumber() {
            return contactNumber;
        }

        public void setContactNumber(String contactNumber) {
            this.contactNumber = contactNumber;
        }

        public String getAuthTime() {
            return authTime;
        }

        public void setAuthTime(String authTime) {
            this.authTime = authTime;
        }

        public String getProviderName() {
            return providerName;
        }

        public void setProviderName(String providerName) {
            this.providerName = providerName;
        }
    }
}
